package com.umeng.analytics.pro;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class i implements Serializable {
    private static final long a = 1;
    private List<String> b;
    private List<String> c;
    private long d;
    private long e;
    private long f;
    private String g;

    public i() {
        this.b = new ArrayList();
        this.c = new ArrayList();
        this.d = 0;
        this.e = 0;
        this.f = 0;
        this.g = null;
    }

    public i(List arg5, long arg6, long arg8, long arg10, List arg12, String arg13) {
        this.b = new ArrayList();
        this.c = new ArrayList();
        this.d = 0;
        this.e = 0;
        this.f = 0;
        this.g = null;
        this.b = arg5;
        this.c = arg12;
        this.d = arg6;
        this.e = arg8;
        this.f = arg10;
        this.g = arg13;
    }

    public String a() {
        return com.umeng.analytics.pro.d.a(this.b);
    }

    public void a(List arg1) {
        this.b = arg1;
    }

    public void a(long arg2) {
        this.d = arg2;
    }

    public void a(String arg5) {
        int v0 = 0;
        try {
            if (this.c.size() < n.a().b()) {
                this.c.add(arg5);
            } else {
                this.c.remove(this.c.get(0));
                this.c.add(arg5);
            }

            if (this.c.size() <= n.a().b()) {
                return;
            }

            while (v0 < this.c.size() - n.a().b()) {
                this.c.remove(this.c.get(0));
                ++v0;
            }
        } catch (Exception v0_1) {
            v0_1.printStackTrace();
        }
    }

    public void a(f arg5, l arg6) {
        this.a(arg6.b());
        ++this.f;
        this.e += arg6.c();
        this.d += arg6.d();
        arg5.a(this, false);
    }

    public void a(l arg3) {
        this.f = 1;
        this.b = arg3.a();
        this.a(arg3.b());
        this.e = arg3.c();
        this.d = System.currentTimeMillis();
        this.g = q.a(System.currentTimeMillis());
    }

    public void b(List arg1) {
        this.c = arg1;
    }

    public void b(long arg2) {
        this.e = arg2;
    }

    public void b(String arg1) {
        this.g = arg1;
    }

    public List b() {
        return this.b;
    }

    public String c() {
        return com.umeng.analytics.pro.d.a(this.c);
    }

    public void c(long arg2) {
        this.f = arg2;
    }

    public List<String> d() {
        return this.c;
    }

    public long e() {
        return this.d;
    }

    public long f() {
        return this.e;
    }

    public long g() {
        return this.f;
    }

    public String h() {
        return this.g;
    }

    public String toString() {
        StringBuffer v0 = new StringBuffer();
        v0.append("[key: ").append(this.b).append("] [label: ").append(this.c).append("][ totalTimeStamp").append(this.g).append("][ value").append(this.e).append("][ count").append(this.f).append("][ timeWindowNum").append(this.g).append("]");
        return v0.toString();
    }
}

